import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

//查询考勤管理
export function getAttendStat(query) {
  return request({
    url: '/attend/stat/list',
    method: 'get',
    params: query
  })
}

//查询考勤记录
export function getAttendList(query) {
  return request({
    url: '/attend/attendRecord/list',
    method: 'get',
    params: query
  })
}

// 新增考勤记录
export function attendRecordAdd(data) {
  return request({
    url: '/attend/attendRecord/add',
    method: 'post',
    data: data
  })
}

//查询考勤详情列表
export function getAttendDetailList(query) {
  return request({
    url: '/attend/attendDetail/list',
    method: 'get',
    params: query
  })
}


// 导出考勤管理信息
export function exportAttendInfo(query) {
  return request({
    url: '/attend/stat/export',
    method: 'get',
    params: query
  })
}

// 导出考勤记录信息
export function exportAttendRecord(query) {
  return request({
    url: '/attend/attendRecord/export',
    method: 'get',
    params: query
  })
}


// 删除用户
export function delAttendDetail(ids) {
  return request({
    url: '/attend/attendDetail/' + ids,
    method: 'delete'
  })
}


